<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<!--    //适配我们的手机端-->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>$Title$</title>
    <link href="/webjars/layui/2.5.7/css/layui.css"/>
</head>
<script src="/webjars/layui/2.5.7/layui.js"></script>
<body>
<div class="layui-carousel" id="test1" lay-filter="test1">
    <div carousel-item>
        <div>1</div>
<!--   <img src="img/1.jpg" alt=""/>-->
<!--     <img src="img/2.jpg" alt=""/>-->
<!--    <img src="img/3.jpg" alt=""/>-->
<!--     <img src="img/4.jpg" alt=""/>-->
    </div>
    <div carousel-item>
        <div>1</div>
        <!--   <img src="img/1.jpg" alt=""/>-->
        <!--     <img src="img/2.jpg" alt=""/>-->
        <!--    <img src="img/3.jpg" alt=""/>-->
        <!--     <img src="img/4.jpg" alt=""/>-->
    </div>
    <div carousel-item>
        <div>1</div>
        <!--   <img src="img/1.jpg" alt=""/>-->
        <!--     <img src="img/2.jpg" alt=""/>-->
        <!--    <img src="img/3.jpg" alt=""/>-->
        <!--     <img src="img/4.jpg" alt=""/>-->
    </div>
       <div carousel-item>
    <div>1</div>
    <!--   <img src="img/1.jpg" alt=""/>-->
    <!--     <img src="img/2.jpg" alt=""/>-->
    <!--    <img src="img/3.jpg" alt=""/>-->
    <!--     <img src="img/4.jpg" alt=""/>-->
</div>
</div>

</body>
<script>
    layui.use('carousel', function(){
        var carousel = layui.carousel;
        //建造实例
        carousel.render({
            elem: '#test1'
            ,arrow: 'always'
        });

    });
</script>
</html>